<?php
class VB_Fotos extends VB_Db_Table {
	protected $_name = 'vb_foto';

	protected $_primary = 'foto_id';

	protected $_rowClass = 'VB_Foto';

	protected $_referenceMap = array(
		'Fotocategory' => array(
			'columns' => 'foto_category_id',
			'refTableClass' => 'VB_Fotocategories',
			'refColumns' => 'foto_category_id'
		),
	);
	
	public function getListByCategory() {
		return $this->fetchAll();
	}
	
	public function getListWithEmptyCategory() {
		return $this->fetchAll();
	}

}
?>